package com.ahncnk.powermonitor.admin.devices.repository;

import com.ahncnk.powermonitor.admin.devices.domain.entity.Device;
import com.ahncnk.powermonitor.admin.devices.domain.projection.GeoDevice;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * DeviceRepository
 *
 * @author lipei
 */
@Repository
public interface DeviceRepository extends JpaRepository<Device, Integer> {

    Iterable<GeoDevice> findGeoDevicesByDistrict(String district);
}
